package com.guoxue.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.guoxue.dao.IBookConfigDao;
import com.guoxue.domain.BookConfigVo;
import com.guoxue.service.IBookConfigService;
@Service("bookConfigService")
public class BookConfigServiceImpl implements IBookConfigService{
	
	@Resource
	private IBookConfigDao bookConfigDao;

	@Override
	public void saveBookConfig(BookConfigVo bc) {
		bookConfigDao.saveBookConfig(bc);
	}

	@Override
	public List<BookConfigVo> getBookConfigList() {
		return bookConfigDao.getBookConfigList();
	}

	@Override
	public void deleteBook(int id) {
		bookConfigDao.deleteBook(id);
	}

	@Override
	public BookConfigVo getBookConfigById(int bookId) {
		return bookConfigDao.getBookConfigById(bookId);
	}
	
	
}
